package com.lanou3g.zjl.chating.utils;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

/**
 * Created by dllo on 15/11/17.
 */
public abstract class BaseFragment extends Fragment {

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

        return getLayout(inflater);
    }
    /**
     * 返回值为所要加载的布局文件
     * @return
     */
    protected abstract View getLayout(LayoutInflater inflater);
}
